#!/bin/bash

# postinst script for system-test-libctest
#
# see: dh_installdeb(1)

#set -e

# summary of how this script can be called:
#        * <postinst> \`configure' <most-recently-configured-version>
#        * <old-postinst> \`abort-upgrade' <new version>
#        * <conflictor's-postinst> \`abort-remove' \`in-favour' <package>
#          <new-version>
#        * <postinst> \`abort-remove'
#        * <deconfigured's-postinst> \`abort-deconfigure' \`in-favour'
#          <failed-install-package> <version> \`removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

PATH=/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH

if [ "${BASEDIR:=/}" = "/" ]; then
    BASEDIR=""
else
    BASEDIR_OPT="-b $BASEDIR"
fi

case "$1" in
    configure)
	chmod 0444 "$BASEDIR/opt/libc-tests/README"
	chown root:bin "$BASEDIR/opt/libc-tests/README"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/README"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/README"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/compilation.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/compilation.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/README"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/README"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/assert_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/assert_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/ctype_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/ctype_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/dirent_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/dirent_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/fcntl_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/fcntl_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/locale_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/locale_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/math_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/math_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/netdb_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/netdb_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/pthread_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/pthread_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/signal_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/signal_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/socket_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/socket_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/stdalign_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/stdalign_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/stddef_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/stddef_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/stdio_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/stdio_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/stdlib_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/stdlib_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/stdnoreturn_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/stdnoreturn_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/string_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/string_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/strings_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/strings_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/sys_atomic_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/sys_atomic_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/sys_mman_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/sys_mman_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/sys_stat_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/sys_stat_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/sys_time_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/sys_time_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/sys_timeb_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/sys_timeb_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/threads_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/threads_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/time_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/time_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/ucontext_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/ucontext_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/unistd_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/unistd_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/wchar_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/wchar_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/cfg/symbols/wctype_h.cfg"
	chown root:bin "$BASEDIR/opt/libc-tests/cfg/symbols/wctype_h.cfg"
	chmod 0444 "$BASEDIR/opt/libc-tests/runfiles/default.run"
	chown root:bin "$BASEDIR/opt/libc-tests/runfiles/default.run"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/E.0.3.4"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/E.0.3.4"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/E.1.5.6"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/E.1.5.6"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/E.2.7.8"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/E.2.7.8"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/E.3.9.10"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/E.3.9.10"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/E.4.11.12"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/E.4.11.12"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/E.5.13.14"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/E.5.13.14"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/W.0.3.4"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/W.0.3.4"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/W.1.5.6"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/W.1.5.6"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/W.2.7.8"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/W.2.7.8"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/W.3.9.10"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/W.3.9.10"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/W.4.11.12"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/W.4.11.12"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/err/data/W.5.13.14"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/data/W.5.13.14"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/basic.dat"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/basic.dat"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/basic.out"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/basic.out"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/categorize.dat"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/categorize.dat"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/categorize.out"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/categorize.out"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/forcedassoc.dat"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/forcedassoc.dat"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/forcedassoc.out"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/forcedassoc.out"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/leftassoc.dat"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/leftassoc.dat"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/leftassoc.out"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/leftassoc.out"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/nullsubexpr.dat"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/nullsubexpr.dat"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/nullsubexpr.out"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/nullsubexpr.out"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/repetition.dat"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/repetition.dat"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/repetition.out"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/repetition.out"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/rightassoc.dat"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/rightassoc.dat"
	chmod 0444 "$BASEDIR/opt/libc-tests/tests/regex/data/rightassoc.out"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/data/rightassoc.out"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_COLLATE/LCL_DATA"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_COLLATE/LCL_DATA"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_CTYPE/LCL_DATA"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_CTYPE/LCL_DATA"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MESSAGES/LCL_DATA"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MESSAGES/LCL_DATA"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MESSAGES/SUNW_OST_OSLIB.mo"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MESSAGES/SUNW_OST_OSLIB.mo"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MESSAGES/priv_names"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MESSAGES/priv_names"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MONETARY/LCL_DATA"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_MONETARY/LCL_DATA"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_NUMERIC/LCL_DATA"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_NUMERIC/LCL_DATA"
	chmod 0444 "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_TIME/LCL_DATA"
	chown root:bin "$BASEDIR/usr/lib/locale/zz_AA.UTF-8/LC_TIME/LCL_DATA"
	chmod 0555 "$BASEDIR/opt/libc-tests/bin/libctest"
	chown root:bin "$BASEDIR/opt/libc-tests/bin/libctest"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/aligned_alloc.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/aligned_alloc.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/aligned_alloc.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/aligned_alloc.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/asprintf-14933.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/asprintf-14933.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/asprintf-14933.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/asprintf-14933.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/c11_threads.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/c11_threads.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/c11_threads.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/c11_threads.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/c11_tss.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/c11_tss.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/c11_tss.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/c11_tss.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/call_once.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/call_once.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/call_once.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/call_once.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/catopen"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/catopen"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/closefrom.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/closefrom.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/closefrom.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/closefrom.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/endian.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/endian.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/endian.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/endian.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/env-7076.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/env-7076.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/env-7076.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/env-7076.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/err/err"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/err"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/err/err.ksh"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/err/err.ksh"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/fnmatch.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/fnmatch.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/fnmatch.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/fnmatch.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/fpround_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/fpround_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/fpround_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/fpround_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/fpround_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/fpround_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/i18n/bindtextdomain_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/i18n/bindtextdomain_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/i18n/bindtextdomain_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/i18n/bindtextdomain_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/i18n/bindtextdomain_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/i18n/bindtextdomain_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/iconv/iconv_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/iconv/iconv_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/iconv/iconv_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/iconv/iconv_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/iconv/iconv_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/iconv/iconv_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/isatty.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/isatty.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/isatty.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/isatty.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/memchr.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/memchr.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/memchr.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/memchr.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/memset_s.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/memset_s.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/memset_s.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/memset_s.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/newlocale_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/newlocale_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/newlocale_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/newlocale_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/newlocale_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/newlocale_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/nl_langinfo_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/nl_langinfo_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/nl_langinfo_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/nl_langinfo_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/nl_langinfo_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/nl_langinfo_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/posix_memalign.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/posix_memalign.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/posix_memalign.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/posix_memalign.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/printf-15294.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/printf-15294.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/printf-15294.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/printf-15294.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/printf-6961.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/printf-6961.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/printf-9511.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/printf-9511.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/printf-9511.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/printf-9511.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/priv_gettext"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/priv_gettext"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/psignal"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/psignal"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/psignal-5097.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/psignal-5097.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/psignal-5097.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/psignal-5097.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/pthread_attr_get_np"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/pthread_attr_get_np"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/qsort/qsort_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/qsort/qsort_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/qsort/qsort_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/qsort/qsort_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/qsort/qsort_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/qsort/qsort_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/quick_exit"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/quick_exit"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/quick_exit_order.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/quick_exit_order.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/quick_exit_order.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/quick_exit_order.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/quick_exit_status.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/quick_exit_status.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/quick_exit_status.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/quick_exit_status.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4key.ksh"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4key.ksh"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random_fork"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random_fork"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random_forkall"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random_forkall"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random_forksig"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random_forksig"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random_prefork"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random_prefork"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random_preforkall"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random_preforkall"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random_preforksig"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random_preforksig"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/arc4random_rekey"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/arc4random_rekey"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/chacha"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/chacha"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/getentropy"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/getentropy"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/getrandom"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/getrandom"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/getrandred"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/getrandred"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/inz_child"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/inz_child"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/inz_inval"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/inz_inval"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/inz_mlock"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/inz_mlock"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/inz_region"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/inz_region"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/inz_split"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/inz_split"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/inz_split_vpp"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/inz_split_vpp"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/random/inz_vpp"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/random/inz_vpp"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/regex/regex_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/regex_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/regex/testregex"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/regex/testregex"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/select/select.sh"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/select/select.sh"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/select/select_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/select/select_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/set_constraint_handler_s.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/set_constraint_handler_s.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/set_constraint_handler_s.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/set_constraint_handler_s.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/fileno.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/fileno.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/fileno.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/fileno.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/fmemopentest.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/fmemopentest.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/fmemopentest.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/fmemopentest.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/ftell_ungetc.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/ftell_ungetc.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/ftell_ungetc.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/ftell_ungetc.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/ftello_12768.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/ftello_12768.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/ftello_12768.lfs"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/ftello_12768.lfs"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/memstream.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/memstream.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/memstream.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/memstream.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/memstream_reopen.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/memstream_reopen.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/memstream_reopen.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/memstream_reopen.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/open_memstreamtest.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/open_memstreamtest.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/open_memstreamtest.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/open_memstreamtest.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/orientation_test.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/orientation_test.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/orientation_test.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/orientation_test.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/test_mbrtowc.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/test_mbrtowc.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/stdio/test_mbrtowc.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/stdio/test_mbrtowc.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/strcoll-strxfrm-6907.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/strcoll-strxfrm-6907.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/strcoll-strxfrm-6907.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/strcoll-strxfrm-6907.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/strerror"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/strerror"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/symbols/setup"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/symbols/setup"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/symbols/symbols_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/symbols/symbols_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/symbols/symbols_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/symbols/symbols_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/thread_name"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/thread_name"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/timespec_get.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/timespec_get.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/timespec_get.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/timespec_get.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/uchar.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/uchar.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/uchar.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/uchar.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/utimes.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/utimes.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/utimes.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/utimes.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7344.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7344.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7344.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7344.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7350.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7350.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7350.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsncasecmp-7350.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsncasecmp.32"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsncasecmp.32"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsncasecmp.64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsncasecmp.64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsrtombs_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsrtombs_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsrtombs_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsrtombs_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wcsrtombs_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wcsrtombs_test.i386"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wctype_test"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wctype_test"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wctype_test.amd64"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wctype_test.amd64"
	chmod 0555 "$BASEDIR/opt/libc-tests/tests/wctype_test.i386"
	chown root:bin "$BASEDIR/opt/libc-tests/tests/wctype_test.i386"
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup assert_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup ctype_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup dirent_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup fcntl_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup locale_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup math_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup netdb_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup pthread_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup signal_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup socket_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup stdalign_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup stddef_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup stdio_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup stdlib_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup stdnoreturn_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup string_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup strings_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup sys_atomic_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup sys_mman_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup sys_stat_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup sys_time_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup sys_timeb_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup threads_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup time_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup ucontext_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup unistd_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup wchar_h)
	mkdir -p $BASEDIR/opt/libc-tests/tests/symbols && (cd $BASEDIR/opt/libc-tests/tests/symbols && cp -f setup wctype_h)
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument '$1'" >&2
        exit 1
    ;;
esac



# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

